﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using LogicaControl;
using ModeloEntidades;

namespace Interfaces.Localidades
{
    public partial class UI_Localidades : Form
    {
        /**************************************************************
       //                      A T R I B U T O S
        **************************************************************/
        private Controlador_Departamentos control_departamento = Controlador_Departamentos.Instance;
        //---------------------------------------------------------------------------------------
           
        //---------------------------------------------------------------------------------------
        public UI_Localidades()
        {
            InitializeComponent();

            this.bindingSource_departamentos.DataSource = control_departamento.obtener();
            this.bindingSource_departamentos.Insert(0, control_departamento.obtenerNinguno());
            this.comboBox_departamentos.SelectedIndex = 0;
            
        }

        private void button_guardar_Click(object sender, EventArgs e)
        {

        }

        private void button_cerrar_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
